<?php

Yii::import('zii.widgets.CPortlet');
/**
 * Description of Teachers
 *
 * @author rany
 */
class TeachersBox extends CPortlet
{
    public $teachers;
    public $limit = 3;

    public function init()
    {
        $this->teachers = Teacher::model()->findAll(array(
                'order' =>'display_level',
                'limit' => $this->limit,
                ));
        
        parent::init();
    }
    
    public function renderContent()
    {
        $this->render('teachers');
    }
}
